{if $smarty.get.print != 1}
  {include file="header.tpl"}
{else}
  {include file="headerPrint.tpl"}
{/if}
<form name="form1" action="" method="post">
<div class="contentDiv">
	<table align="center" cellspacing="0" cellpadding="2" style="border:1px solid;">
	   {if $smarty.get.print != 1}
		<tr>
			<th allign="rignt"><font size="3" color="red">{$l_partyName}</font>|</th>
			<th align="right"><font size="3" color="red">{$l_fine}</font>|</th>
			<th align="right"><font size="3" color="red">{$l_amount}</font></th>
		</tr>
		 {else}
		 <tr>
			<th>{$l_partyName}|</th>
			<th align="right">{$l_fine}|</th>
			<th align="right">{$l_amount}</th>
		</tr>
		  {/if}
		<tr>
	  	<td colspan="3"><hr/></td>
	  </tr>
		{section name="sec" loop=$party|@count}
		  <tr>
		  	<td>{$party[sec].name}</td>
		  	{if $party[sec].fine >= 0}
		  	  <td align="right" style="color:green;">{$party[sec].fine|string_format:"%.0f"}</td>
		  	{else}
		  	  <td align="right" style="color:red;">{$party[sec].fine|string_format:"%.0f"}</td>
		  	{/if}
		  	
		  	{if $party[sec].amount >= 0}
		  	  <td align="right" style="color:green;">{$party[sec].amount|string_format:"%.0f"}</td>
		  	{else}
		  	  <td align="right" style="color:red;">{$party[sec].amount|string_format:"%.0f"}</td>
		  	{/if}
		  	
		  </tr>
		  <tr>
		  	<td colspan="3"><hr/></td>
		  </tr>
		{/section}
		<tr>
			<th align="right">{$l_total}</th>
			{if $fineTotal >= 0}
			  <th align="right" style="color:green;">{$fineTotal|string_format:"%.0f"}</th>
			{else}
			  <th align="right" style="color:red;">{$fineTotal|string_format:"%.0f"}</th>
			{/if}
			
			{if $amountTotal >= 0}
			  <th align="right" style="color:green;">{$amountTotal|string_format:"%.0f"}</th>
			{else}
			  <th align="right" style="color:red;">{$amountTotal|string_format:"%.0f"}</th>
			{/if}  
			
		</tr>
		{if $smarty.get.print != 1}
    	<div align="right"><a href="vepaariSummery.php?print=1"><font size="4" color="red">Summary Print</font></a></div>
    {else}
    &nbsp;
   {/if}

	</table>
</div>
</form>
{if $smarty.get.print != 1}
  {include file="footer.tpl"}
{/if}